<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>axio练习</title>
	</head>A
	<body>
		<script src="../js/axios.js"></script>
		<script>
			/* get请求:查询所有 */
			axios.get("http://localhost:8091/getUser")
				.then(result => {
					console.log("查询成功")
					console.log(result.data)
				})
			axios.get("http://localhost:8091/user/3")
				.then(result => {
					console.log("restFul风格查询")
					console.log(result.data)
				})
			axios.post("http://localhost:8091/user/作业在此/12/男")
				.then(result => {
					console.log("post请求成功")
					console.log(result.data)
				})
			
			
		</script>
		
	</body>
</html>
